package com.yang;

import com.google.common.eventbus.Subscribe;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yang
 * @date 2019/4/22 9:48
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher {

    private String username;

    @Subscribe
    public void func(String msg) {
        System.out.println(username + "接收到消息：" + msg);
    }

}
